package com.hna.eking.framework.exception;

import com.hna.eking.service.framework.result.ServiceResult;

public class InvalidClientException extends RuntimeException {
    private ServiceResult serviceResult;

    public InvalidClientException(ServiceResult serviceResult) {
        super(serviceResult.getMessage());
        this.serviceResult = serviceResult;
    }

    public ServiceResult getServiceResult() {
        return serviceResult;
    }

    public void setServiceResult(ServiceResult serviceResult) {
        this.serviceResult = serviceResult;
    }
}
